<%@ include file="/common/header.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<body ng-init="xxbxtbgxxsbcgxjbxx = {};XH='${XH }';testModelValue='1512718762310013385728'">
	<div class="container-full" ng-controller="testController">
		<div class="row">
			<div class="col-md-12 leftContain">
				<div class="edit-header row">
					<div class="col-xs-4 edit-title">
						<i class="iocn"></i> <i>编辑页面</i>
					</div>
					<div class="col-xs-8 edit-btn-box" style="padding-right: 24px;">
						<button type="button" class="btn btn-default btn-sm" ng-click="test()">测试</button>
					</div>
				</div>
				<div class="edit-body row">
					<form id="myVaildate" class="form-horizontal" name="validateForm">
						<table class="table table-bordered table-form-edit">
							<tbody class="form-group">
								<tr>
									<th class="tit">testModelValue</th>
									<td class="ds-input-box"><input ng-model="testModelValue" type="text" class="form-control easyui-validatebox" data-options="required:true,tipPosition:'bottom'" /></td>
									<th class="tit">testModelObject</th>
									<td class="ds-input-box"><input ng-model="testModelObject" type="text" class="form-control easyui-validatebox" data-options="required:true,tipPosition:'bottom'" /></td>
									<th class="tit">testModelObject</th>
									<td class="ds-input-box">{{testModelObject}}</td>
								</tr>
								<tr>
									<th class="tit" colspan="6">
										<div szboanda-free-select ng-config="selectConfig" ng-model-value="testModelValue" ng-model-object="testModelObject" divid="1111" inputId="123" data-options="" ngDisabled="false">
									</th>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
	<!-- 文件上传依赖 -->
	<script type="text/javascript" src="<common:webRoot />/resources/platform/common/component/file/ng-slide-down.js?v=${sysversion}"></script>
	<script type="text/javascript" src="<common:webRoot />/resources/platform/common/component/file/directive.js?v=${sysversion}"></script>
	<!-- 文件上传结束 -->
	<script>
//JavaScript Doccument
var app = Common.initApp(['ngAnimate', 'ui.bootstrap', 'angular.filter']);
Common.initDirective(app);//初始化自定义指令
File.init(app);
app.controller('testController', ['$scope', '$http', '$timeout',  
      function ($scope, $http, $timeout) {
	$scope.selectConfig = {
			dataType:'remote',
			dataUrl:Common.webRoot() + '/business/admin/zzjgjx/jxjl/businessadminzzjgjxjxjlcontroller/querybusinessadminzzjgjxjxjl',
			dataFilter : {
				pageNum: 1,
				pageSize : 10
			},
			ajaxModelFilter : function(response){
				var list = response.list;
				var selectList = new Array();
				var len = list.length;
				for(var i=0;i<len;i++){
					var node = list[i];
					selectList.push({
						label: node.NAME,
						value: node.XH
					});
				}
				return selectList;
			}
	};
	debugger;
	$scope.test= function(){
		debugger;
		if(!Common.validate()){
			return;
		}
	}
}]);
</script>

	<!-- 自由选择组件依赖-开始  -->
	<script type="text/javascript" src="<common:webRoot/>/resources/business/ajDirective/FreeSelect/szboandaAJDirectiveFreeSelect.js?v=${sysversion}"></script>
	<!-- 自由选择组件依赖-结束  -->
	
</body>
<%@ include file="/common/footer.jsp"%>
